﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Utils.SoftReferences;
//using Microsoft.Xna.Framework.Graphics;

namespace GameObjects
{
    [Serializable]
    public class Structure : BaseSoftRefTarget
    {
        public Hex Hex;
        public MetaData.StructureType StructureType;
        public Faction PreviousOwner;
        public Faction Owner;

        public Structure(SoftRefSet softRefSet, MetaData.StructureType structureType, Hex hex, Faction player) : base(softRefSet)
        {
            StructureType = structureType;
            Hex = hex;
            Hex.Structure = this;
            PreviousOwner = player;
        }

        public float StrengthBonus
        {
            get { return StructureType == MetaData.StructureType.Fortress ? 1.1f : 1.2f; }
        }

        public string Color
        {
            get { return Owner != null ? Owner.PointColour : "CCCCCC"; }
        }

        //set { previousOwner = value; }
    }
}
